<template>
    <div class="tabBar">
        <!-- 千万不要在/路由上使用link-active不然全程生效 -->
        <router-link tag="div" to="home" class="item" ><span>首页</span></router-link>
        <router-link tag="div" to="follow" class="item"><span>熟人</span></router-link>
        <router-link tag="div" to="/add" class="item"><span >+</span></router-link>
        <router-link tag="div" to="/message" class="item"><span>消息</span></router-link> 
        <router-link tag="div" to="/mine" class="item"><span>我</span></router-link>
    </div>
</template>

<script>
export default {
    data(){
        return{
            
        }
    },
    methods:{
       
    }
}
</script>
<style  scoped>
    .tabBar{
        height: 50px;
        line-height: 50px;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        display: flex;
        justify-items: center;
        background: transparent;
        color:#ffffff;
        font-size: 15px;
        z-index: 1;
    }
    .tabBar .item{
        text-align: center;
        flex: 1;
    }
    .tabBar .router-link-active{
        font-weight: bold;
        border-bottom: 2px solid #ffff;
    }
    .tabBar .item:nth-child(3) span{
        display: block;
        width: 40px;
        height: 25px;
        background: rgb(223, 216, 216);
        margin: 13px auto;
        line-height: 25px;
        border-radius: 8px;
        color: rgb(32, 29, 29);
        font-size: 20px;
        font-weight: bold;
        box-shadow: -1px 0px 2px 1px cyan;
    }
</style>